SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 52963: The error "The %LOCAL statement is not valid in open code" occurs when you submit a user-written adapter staging job

DetailsAboutRate It

In SAS® IT Resource Management 3.4, the following error occurs when you submit a user-written adapter staging job:

678        %LET ADMIN=Adm9084; 
679            LIBNAME Adm9084 ("/sasdata/admin") ACCESS=READONLY; 
NOTE: Libref ADM9084 was successfully assigned as follows: 
      Levels:           1 
      Engine(1):        V9 
      Physical Name(1): /sasdata/admin 
ERROR: The %LOCAL statement is not valid in open code. 
680        %local oldfmt; 
681        %let oldfmt=%sysfunc(getoption(FMTSEARCH)); 
682        options insert=(fmtsearch = &ADMIN..FORMATS); 
683        options nofmterr; 

The error is a result of an erroneous, auto–generated %LOCAL statement in SAS IT Resource Management.

To circumvent this error, modify the SAS IT Resource Management User-Written Staging transformation, as follows:

  1. From the IT Data Marts tree in SAS IT Resource Management, double-click the job that is to contain the User-Written Staging transformation. By default, the job opens on the Diagram tab of the Job Editor window.
  2. Click the Code tab in the Job Editor window. This tab enables you to manager the code for the transformation before you execute a job.
  3. Change the selection for Code generation mode to User written body.
  4. Locate the following SAS statement in the generated code and delete it:
  5. %local oldfmt;
  6. Save the SAS IT Resource Management staging job.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS IT Resource Managementz/OS3.43.59.4 TS1M19.4 TS1M2
Microsoft® Windows® for x643.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8 Enterprise 32-bit3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8 Enterprise x643.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8 Pro 32-bit3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8 Pro x643.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8.1 Enterprise x643.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8.1 Pro3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 20083.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2008 R23.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2008 for x643.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2012 Datacenter3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2012 R2 Std3.43.59.4 TS1M19.4 TS1M2
Microsoft Windows Server 2012 Std3.43.59.4 TS1M19.4 TS1M2
Windows 7 Enterprise 32 bit3.43.59.4 TS1M19.4 TS1M2
Windows 7 Enterprise x643.43.59.4 TS1M19.4 TS1M2
Windows 7 Home Premium 32 bit3.43.59.4 TS1M19.4 TS1M2
Windows 7 Home Premium x643.43.59.4 TS1M19.4 TS1M2
Windows 7 Professional 32 bit3.43.59.4 TS1M19.4 TS1M2
Windows 7 Professional x643.43.59.4 TS1M19.4 TS1M2
Windows 7 Ultimate 32 bit3.43.59.4 TS1M19.4 TS1M2
Windows 7 Ultimate x643.43.59.4 TS1M19.4 TS1M2
64-bit Enabled AIX3.43.59.4 TS1M19.4 TS1M2
64-bit Enabled Solaris3.43.59.4 TS1M19.4 TS1M2
HP-UX IPF3.43.59.4 TS1M19.4 TS1M2
Linux for x643.43.59.4 TS1M19.4 TS1M2
Solaris for x643.43.59.4 TS1M19.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.